﻿using System;
using System.Text;
using BSDS.Core.Model.Services.Jobs.Core;

namespace BSDS.Core.Model.Services.Jobs
{
    public class UploadJob : Job
    {
        public static string TypeName { get { return "Upload"; } }
        public override string JobTypeName { get { return TypeName; } }
        public string DataSourceName { get; set; }
        public string Link { get; set; }

        public override string ToString()
        {
            var baseInfo = base.ToString();

            var builder = new StringBuilder();
            builder.Append("Data Source Name: " + DataSourceName).Append(Environment.NewLine)
                   .Append("Upload Records: ").Append(RecordsNumber).Append(Environment.NewLine)
                   .Append("Command: ").Append(Command);

            return baseInfo + builder;
        }
    }
}